<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
    .edit{
        height: 500px;
    }
</style>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li ><a href="{:url('admin/order/refundList')}">售后订单</a></li>
        <li class="active"><a href="javascript:void (0)">订单回复</a></li>
    </ul>
    <form action="{:url('order/refundPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">

                    <tr>
                        <th width="100">订单号</th>
                        <td>
                            <input class="form-control" type="text" name="post[order_id]" required value="{$data.order_id}" readonly />
                        </td>
                    </tr>
                    <tr>
                        <th>用户售后说明</th>
                        <td>
                            <textarea class="form-control" readonly name="post[user_refund_desc]" style="height: 50px;">{$data.user_refund_desc}</textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>用户售后截图</th>
                        <td>
                            <div>
                                <empty name="$data['user_refund_img']">
                                    无
                                    <else/>
                                    <volist name="$data['user_refund_img']" id="img">
                                        <a href='javascript:parent.imagePreviewDialog("{$img|cmf_get_image_url}");'>
                                            <img src="{$img|cmf_get_image_url}"
                                                 id="thumbnail-preview"
                                                 width="135" style="cursor: pointer"/>
                                        </a>
                                    </volist>
                                </empty>


                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th>售后回复</th>
                        <td>
                            <textarea class="form-control" required name="post[desc]" style="height: 50px;">{$data.desc|default=''}</textarea>

                        </td>
                    </tr>

                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit">回复</button>
                        <a class="btn btn-default" href="{:url('Order/sh')}">{:lang('BACK')}</a>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>


<script type="text/javascript">
    $(function () {

        $('.btn-cancel-thumbnail').click(function () {
            $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
            $('#thumbnail').val('');
        });

    });
</script>
</body>
</html>
